package com.ebelter.btlibrary.btble.impl.scale.callback;

import com.ebelter.btlibrary.btble.impl.scale.model.OfflineMeasureResult;
import com.ebelter.btlibrary.btble.impl.scale.model.ScaleMeasureResult;


/**
 * 测量结果接口
 * Created by pan on 2017/11/3.
 */

public interface IMeasureResultCallback {

    /**
     * 脂肪测量结果数据
     * @param result
     */
    void onReceiveMeasureResult(ScaleMeasureResult result);

    /**
     * 体重超载
     */
    void onWeightOverLoad();

    /**
     * 接收到测量历史数据
     * @param result
     */
    void onReceiveHistoryRecord(OfflineMeasureResult result);

    /**
     * 测脂出错
     * @param type 出错类型
     */
    void onFatMeasureError(int type);

    /**
     * 接收到历史记录上发完毕
     */
    void onHistoryDownloadDone();

    void onReceiveTime(long time);

    void updateUserInfoSuccess();

    void sendGetHisDataACK();
    void sendGetMesureDataACK();

}
